package com.example.permanentroom;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import java.util.ArrayList;

import Service.GouwucheService;

public class gouwuche extends AppCompatActivity {
    public static String order="";
    public static String price="";
    public static ArrayList<Integer> comidlist=new ArrayList();
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.gouwuche);
        TextView tv1=findViewById(R.id.order);
        TextView tv2=findViewById(R.id.price);
        tv1.setText(order);
        tv2.setText(price);
    }
    public void goShouye(View view) {
        Intent intent=new Intent(this,shouye.class);
        startActivity(intent);
        this.finish();
    }
    public void goGouwuche(View view) {
        Intent intent=new Intent(this,gouwuche.class);
        startActivity(intent);
        this.finish();
    }
    public void goWode(View view) {
        Intent intent=new Intent(this,wode.class);
        startActivity(intent);
        this.finish();
    }
    public void pay(View view) {
new GouwucheService().pay(comidlist,MainActivity.userid,this);
    }





    public void register(View view) {

    }

}